#ifndef AUDIOMANAGER_H
#define AUDIOMANAGER_H

#include <QString>
#include <QUdpSocket>
#include "audioengine.h"

class   AudioManager : public QUdpSocket
{
    Q_OBJECT
public:
    AudioManager();
    void startListen();
    bool connectPeer(QString addr, qint32 port);
    void startRecord();

private:
    AudioEngine m_audioEngine;
    bool m_startRecord;

public slots:
    void sendRecord(QByteArray* data);
    void treadData();

signals:
    void sendSound(QByteArray*);
};

#endif // AUDIOMANAGER_H
